package com.biz.model.Hmodel;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by lzq.
 */

@Entity
@Table(name = "t_sys_user")
public class TSysUser {
    private String id;
    private Short identity;
    private String loginName;
    private String pwd;
    private String roles;
    private String phone;
    private String email;
    private String notes;
    private String coverId;
    private Short isLock;
    private Short isdel;
    private Date createTime;
    private String identityCode;
    private String personName;
    private String mapId;
    private Short sex;
    private String fax;
    private Integer sorts;
    private Integer isShop;
    private Short type;
    private String authorName;
    private String orgId;
    private String openId;
    private Double money;
    private Integer coupons;
    private Integer integral;
    private Integer grade;
    private Short authorType;
    private String accessToken;
    private Date atStarttime;
    private Date atEndtime;
    private String path;
    private String ticket;
    private String headimgurl;
    private String qcode;
    private Date qcodeTime;
    private String appid;
    private String appsecret;
    private String gradeId;
    private String province;
    private String city;
    private String area;

    @Basic
    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area")
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    private String groupName;


    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "identity")
    public Short getIdentity() {
        return identity;
    }

    public void setIdentity(Short identity) {
        this.identity = identity;
    }

    @Basic
    @Column(name = "loginName")
    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Basic
    @Column(name = "pwd")
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Basic
    @Column(name = "roles")
    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    @Basic
    @Column(name = "phone")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Basic
    @Column(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Basic
    @Column(name = "notes")
    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Basic
    @Column(name = "coverId")
    public String getCoverId() {
        return coverId;
    }

    public void setCoverId(String coverId) {
        this.coverId = coverId;
    }

    @Basic
    @Column(name = "isLock")
    public Short getIsLock() {
        return isLock;
    }

    public void setIsLock(Short isLock) {
        this.isLock = isLock;
    }

    @Basic
    @Column(name = "isdel")
    public Short getIsdel() {
        return isdel;
    }

    public void setIsdel(Short isdel) {
        this.isdel = isdel;
    }

    @Basic
    @Column(name = "createTime")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "identity_code")
    public String getIdentityCode() {
        return identityCode;
    }

    public void setIdentityCode(String identityCode) {
        this.identityCode = identityCode;
    }

    @Basic
    @Column(name = "personName")
    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @Basic
    @Column(name = "mapId")
    public String getMapId() {
        return mapId;
    }

    public void setMapId(String mapId) {
        this.mapId = mapId;
    }

    @Basic
    @Column(name = "sex")
    public Short getSex() {
        return sex;
    }

    public void setSex(Short sex) {
        this.sex = sex;
    }

    @Basic
    @Column(name = "fax")
    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    @Basic
    @Column(name = "sorts")
    public Integer getSorts() {
        return sorts;
    }

    public void setSorts(Integer sorts) {
        this.sorts = sorts;
    }

    @Basic
    @Column(name = "isShop")
    public Integer getIsShop() {
        return isShop;
    }

    public void setIsShop(Integer isShop) {
        this.isShop = isShop;
    }

    @Basic
    @Column(name = "type")
    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    @Basic
    @Column(name = "authorName")
    public String getAuthorName() {
        return authorName;
    }

    public void setAuthorName(String authorName) {
        this.authorName = authorName;
    }

    @Basic
    @Column(name = "orgId")
    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    @Basic
    @Column(name = "openId")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Basic
    @Column(name = "money")
    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    @Basic
    @Column(name = "coupons")
    public Integer getCoupons() {
        return coupons;
    }

    public void setCoupons(Integer coupons) {
        this.coupons = coupons;
    }

    @Basic
    @Column(name = "integral")
    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    @Basic
    @Column(name = "grade")
    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    @Basic
    @Column(name = "authorType")
    public Short getAuthorType() {
        return authorType;
    }

    public void setAuthorType(Short authorType) {
        this.authorType = authorType;
    }

    @Basic
    @Column(name = "accessToken")
    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Basic
    @Column(name = "atStarttime")
    public Date getAtStarttime() {
        return atStarttime;
    }

    public void setAtStarttime(Date atStarttime) {
        this.atStarttime = atStarttime;
    }

    @Basic
    @Column(name = "atEndtime")
    public Date getAtEndtime() {
        return atEndtime;
    }

    public void setAtEndtime(Date atEndtime) {
        this.atEndtime = atEndtime;
    }

    @Basic
    @Column(name = "path")
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Basic
    @Column(name = "ticket")
    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    @Basic
    @Column(name = "headimgurl")
    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    @Basic
    @Column(name = "qcode")
    public String getQcode() {
        return qcode;
    }

    public void setQcode(String qcode) {
        this.qcode = qcode;
    }

    @Basic
    @Column(name = "qcodeTime")
    public Date getQcodeTime() {
        return qcodeTime;
    }

    public void setQcodeTime(Date qcodeTime) {
        this.qcodeTime = qcodeTime;
    }

    @Basic
    @Column(name = "appid")
    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    @Basic
    @Column(name = "appsecret")
    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    @Basic
    @Column(name = "gradeId")
    public String getGradeId() {
        return gradeId;
    }

    public void setGradeId(String gradeId) {
        this.gradeId = gradeId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TSysUser tSysUser = (TSysUser) o;

        if (id != null ? !id.equals(tSysUser.id) : tSysUser.id != null) return false;
        if (identity != null ? !identity.equals(tSysUser.identity) : tSysUser.identity != null) return false;
        if (loginName != null ? !loginName.equals(tSysUser.loginName) : tSysUser.loginName != null) return false;
        if (pwd != null ? !pwd.equals(tSysUser.pwd) : tSysUser.pwd != null) return false;
        if (roles != null ? !roles.equals(tSysUser.roles) : tSysUser.roles != null) return false;
        if (phone != null ? !phone.equals(tSysUser.phone) : tSysUser.phone != null) return false;
        if (email != null ? !email.equals(tSysUser.email) : tSysUser.email != null) return false;
        if (notes != null ? !notes.equals(tSysUser.notes) : tSysUser.notes != null) return false;
        if (coverId != null ? !coverId.equals(tSysUser.coverId) : tSysUser.coverId != null) return false;
        if (isLock != null ? !isLock.equals(tSysUser.isLock) : tSysUser.isLock != null) return false;
        if (isdel != null ? !isdel.equals(tSysUser.isdel) : tSysUser.isdel != null) return false;
        if (createTime != null ? !createTime.equals(tSysUser.createTime) : tSysUser.createTime != null) return false;
        if (identityCode != null ? !identityCode.equals(tSysUser.identityCode) : tSysUser.identityCode != null)
            return false;
        if (personName != null ? !personName.equals(tSysUser.personName) : tSysUser.personName != null) return false;
        if (mapId != null ? !mapId.equals(tSysUser.mapId) : tSysUser.mapId != null) return false;
        if (sex != null ? !sex.equals(tSysUser.sex) : tSysUser.sex != null) return false;
        if (fax != null ? !fax.equals(tSysUser.fax) : tSysUser.fax != null) return false;
        if (sorts != null ? !sorts.equals(tSysUser.sorts) : tSysUser.sorts != null) return false;
        if (isShop != null ? !isShop.equals(tSysUser.isShop) : tSysUser.isShop != null) return false;
        if (type != null ? !type.equals(tSysUser.type) : tSysUser.type != null) return false;
        if (authorName != null ? !authorName.equals(tSysUser.authorName) : tSysUser.authorName != null) return false;
        if (orgId != null ? !orgId.equals(tSysUser.orgId) : tSysUser.orgId != null) return false;
        if (openId != null ? !openId.equals(tSysUser.openId) : tSysUser.openId != null) return false;
        if (money != null ? !money.equals(tSysUser.money) : tSysUser.money != null) return false;
        if (coupons != null ? !coupons.equals(tSysUser.coupons) : tSysUser.coupons != null) return false;
        if (integral != null ? !integral.equals(tSysUser.integral) : tSysUser.integral != null) return false;
        if (grade != null ? !grade.equals(tSysUser.grade) : tSysUser.grade != null) return false;
        if (authorType != null ? !authorType.equals(tSysUser.authorType) : tSysUser.authorType != null) return false;
        if (accessToken != null ? !accessToken.equals(tSysUser.accessToken) : tSysUser.accessToken != null)
            return false;
        if (atStarttime != null ? !atStarttime.equals(tSysUser.atStarttime) : tSysUser.atStarttime != null)
            return false;
        if (atEndtime != null ? !atEndtime.equals(tSysUser.atEndtime) : tSysUser.atEndtime != null) return false;
        if (path != null ? !path.equals(tSysUser.path) : tSysUser.path != null) return false;
        if (ticket != null ? !ticket.equals(tSysUser.ticket) : tSysUser.ticket != null) return false;
        if (headimgurl != null ? !headimgurl.equals(tSysUser.headimgurl) : tSysUser.headimgurl != null) return false;
        if (qcode != null ? !qcode.equals(tSysUser.qcode) : tSysUser.qcode != null) return false;
        if (qcodeTime != null ? !qcodeTime.equals(tSysUser.qcodeTime) : tSysUser.qcodeTime != null) return false;
        if (appid != null ? !appid.equals(tSysUser.appid) : tSysUser.appid != null) return false;
        if (appsecret != null ? !appsecret.equals(tSysUser.appsecret) : tSysUser.appsecret != null) return false;
        if (gradeId != null ? !gradeId.equals(tSysUser.gradeId) : tSysUser.gradeId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (identity != null ? identity.hashCode() : 0);
        result = 31 * result + (loginName != null ? loginName.hashCode() : 0);
        result = 31 * result + (pwd != null ? pwd.hashCode() : 0);
        result = 31 * result + (roles != null ? roles.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (notes != null ? notes.hashCode() : 0);
        result = 31 * result + (coverId != null ? coverId.hashCode() : 0);
        result = 31 * result + (isLock != null ? isLock.hashCode() : 0);
        result = 31 * result + (isdel != null ? isdel.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (identityCode != null ? identityCode.hashCode() : 0);
        result = 31 * result + (personName != null ? personName.hashCode() : 0);
        result = 31 * result + (mapId != null ? mapId.hashCode() : 0);
        result = 31 * result + (sex != null ? sex.hashCode() : 0);
        result = 31 * result + (fax != null ? fax.hashCode() : 0);
        result = 31 * result + (sorts != null ? sorts.hashCode() : 0);
        result = 31 * result + (isShop != null ? isShop.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (authorName != null ? authorName.hashCode() : 0);
        result = 31 * result + (orgId != null ? orgId.hashCode() : 0);
        result = 31 * result + (openId != null ? openId.hashCode() : 0);
        result = 31 * result + (money != null ? money.hashCode() : 0);
        result = 31 * result + (coupons != null ? coupons.hashCode() : 0);
        result = 31 * result + (integral != null ? integral.hashCode() : 0);
        result = 31 * result + (grade != null ? grade.hashCode() : 0);
        result = 31 * result + (authorType != null ? authorType.hashCode() : 0);
        result = 31 * result + (accessToken != null ? accessToken.hashCode() : 0);
        result = 31 * result + (atStarttime != null ? atStarttime.hashCode() : 0);
        result = 31 * result + (atEndtime != null ? atEndtime.hashCode() : 0);
        result = 31 * result + (path != null ? path.hashCode() : 0);
        result = 31 * result + (ticket != null ? ticket.hashCode() : 0);
        result = 31 * result + (headimgurl != null ? headimgurl.hashCode() : 0);
        result = 31 * result + (qcode != null ? qcode.hashCode() : 0);
        result = 31 * result + (qcodeTime != null ? qcodeTime.hashCode() : 0);
        result = 31 * result + (appid != null ? appid.hashCode() : 0);
        result = 31 * result + (appsecret != null ? appsecret.hashCode() : 0);
        result = 31 * result + (gradeId != null ? gradeId.hashCode() : 0);
        return result;
    }
}
